<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Copyright © 2006-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>OpenMP 5.1 (GNU libgomp)</title>

<meta name="description" content="OpenMP 5.1 (GNU libgomp)">
<meta name="keywords" content="OpenMP 5.1 (GNU libgomp)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Library-Index.html" rel="index" title="Library Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="OpenMP-Implementation-Status.html" rel="up" title="OpenMP Implementation Status">
<link href="OpenMP-5_002e2.html" rel="next" title="OpenMP 5.2">
<link href="OpenMP-5_002e0.html" rel="prev" title="OpenMP 5.0">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en">
<div class="section-level-extent" id="OpenMP-5_002e1">
<div class="nav-panel">
<p>
Next: <a href="OpenMP-5_002e2.html" accesskey="n" rel="next">OpenMP 5.2</a>, Previous: <a href="OpenMP-5_002e0.html" accesskey="p" rel="prev">OpenMP 5.0</a>, Up: <a href="OpenMP-Implementation-Status.html" accesskey="u" rel="up">OpenMP Implementation Status</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Library-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h3 class="section" id="OpenMP-5_002e1-1"><span>2.3 OpenMP 5.1<a class="copiable-link" href="#OpenMP-5_002e1-1"> &para;</a></span></h3>

<ul class="mini-toc">
<li><a href="#New-features-listed-in-Appendix-B-of-the-OpenMP-specification-1" accesskey="1">New features listed in Appendix B of the OpenMP specification</a></li>
<li><a href="#Other-new-OpenMP-5_002e1-features" accesskey="2">Other new OpenMP 5.1 features</a></li>
</ul>
<div class="unnumberedsubsec-level-extent" id="New-features-listed-in-Appendix-B-of-the-OpenMP-specification-1">
<h4 class="unnumberedsubsec"><span>New features listed in Appendix B of the OpenMP specification<a class="copiable-link" href="#New-features-listed-in-Appendix-B-of-the-OpenMP-specification-1"> &para;</a></span></h4>

<table class="multitable">
<thead><tr><th width="60%">Description</th><th width="10%">Status</th><th width="25%">Comments</th></tr></thead>
<tbody><tr><td width="60%">OpenMP directive as C++ attribute specifiers</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_all_memory</code> reserved locator</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><em class="emph">target_device trait</em> in OpenMP Context</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">target_device</code> selector set in context selectors</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">C/C++&rsquo;s <code class="code">declare variant</code> directive: elision support of
      preprocessed code</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">declare variant</code>: new clauses <code class="code">adjust_args</code> and
      <code class="code">append_args</code></td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">dispatch</code> construct</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">device-specific ICV settings with environment variables</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">assume</code> and <code class="code">assumes</code> directives</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">nothing</code> directive</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">error</code> directive</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">masked</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">scope</code> directive</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Loop transformation constructs</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">strict</code> modifier in the <code class="code">grainsize</code> and <code class="code">num_tasks</code>
      clauses of the <code class="code">taskloop</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">align</code> clause in <code class="code">allocate</code> directive</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">align</code> modifier in <code class="code">allocate</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">thread_limit</code> clause to <code class="code">target</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">has_device_addr</code> clause to <code class="code">target</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Iterators in <code class="code">target update</code> motion clauses and <code class="code">map</code>
      clauses</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">Indirect calls to the device version of a procedure or function in
      <code class="code">target</code> regions</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">interop</code> directive</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_interop_t</code> object support in runtime routines</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">nowait</code> clause in <code class="code">taskwait</code> directive</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Extensions to the <code class="code">atomic</code> directive</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">seq_cst</code> clause on a <code class="code">flush</code> construct</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">inoutset</code> argument to the <code class="code">depend</code> clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">private</code> and <code class="code">firstprivate</code> argument to <code class="code">default</code>
      clause in C and C++</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">present</code> argument to <code class="code">defaultmap</code> clause</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_set_num_teams</code>, <code class="code">omp_set_teams_thread_limit</code>,
      <code class="code">omp_get_max_teams</code>, <code class="code">omp_get_teams_thread_limit</code> runtime
      routines</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_target_is_accessible</code> runtime routine</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_target_memcpy_async</code> and <code class="code">omp_target_memcpy_rect_async</code>
      runtime routines</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_get_mapped_ptr</code> runtime routine</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_calloc</code>, <code class="code">omp_realloc</code>, <code class="code">omp_aligned_alloc</code> and
      <code class="code">omp_aligned_calloc</code> runtime routines</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_alloctrait_key_t</code> enum: <code class="code">omp_atv_serialized</code> added,
      <code class="code">omp_atv_default</code> changed</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">omp_display_env</code> runtime routine</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">ompt_scope_endpoint_t</code> enum: <code class="code">ompt_scope_beginend</code></td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">ompt_sync_region_t</code> enum additions</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">ompt_state_t</code> enum: <code class="code">ompt_state_wait_barrier_implementation</code>
      and <code class="code">ompt_state_wait_barrier_teams</code></td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">ompt_callback_target_data_op_emi_t</code>,
      <code class="code">ompt_callback_target_emi_t</code>, <code class="code">ompt_callback_target_map_emi_t</code>
      and <code class="code">ompt_callback_target_submit_emi_t</code></td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">ompt_callback_error_t</code> type</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">OMP_PLACES</code> syntax extensions</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">OMP_NUM_TEAMS</code> and <code class="code">OMP_TEAMS_THREAD_LIMIT</code> environment
      variables</td><td width="10%">Y</td><td width="25%"></td></tr>
</tbody>
</table>

</div>
<div class="unnumberedsubsec-level-extent" id="Other-new-OpenMP-5_002e1-features">
<h4 class="unnumberedsubsec"><span>Other new OpenMP 5.1 features<a class="copiable-link" href="#Other-new-OpenMP-5_002e1-features"> &para;</a></span></h4>

<table class="multitable">
<thead><tr><th width="60%">Description</th><th width="10%">Status</th><th width="25%">Comments</th></tr></thead>
<tbody><tr><td width="60%">Support of strictly structured blocks in Fortran</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Support of structured block sequences in C/C++</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">unconstrained</code> and <code class="code">reproducible</code> modifiers on <code class="code">order</code>
      clause</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Support <code class="code">begin/end declare target</code> syntax in C/C++</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%">Pointer predetermined firstprivate getting initialized
to address of matching mapped list item per 5.1, Sect. 2.21.7.2</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">For Fortran, diagnose placing declarative before/between <code class="code">USE</code>,
      <code class="code">IMPORT</code>, and <code class="code">IMPLICIT</code> as invalid</td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%">Optional comma between directive and clause in the <code class="code">#pragma</code> form</td><td width="10%">Y</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">indirect</code> clause in <code class="code">declare target</code></td><td width="10%">N</td><td width="25%"></td></tr>
<tr><td width="60%"><code class="code">device_type(nohost)</code>/<code class="code">device_type(host)</code> for variables</td><td width="10%">N</td><td width="25%"></td></tr>
</tbody>
</table>


</div>
</div>
<hr>
<div class="nav-panel">
<p>
Next: <a href="OpenMP-5_002e2.html">OpenMP 5.2</a>, Previous: <a href="OpenMP-5_002e0.html">OpenMP 5.0</a>, Up: <a href="OpenMP-Implementation-Status.html">OpenMP Implementation Status</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Library-Index.html" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>
